<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>显示所有的数据</title>
</head>
<body>
<a href="excel?m=exportExcel">导出报表</a>
<form action="excel?m=importExcel" method="post" enctype="multipart/form-data">
  <input type="file" name="excelFile">
  <input type="submit" value="导入报表">
</form>
<table border="1">
  <tr>
    <th>编号</th>
    <th>名字</th>
    <th>密码</th>
    <th>性别</th>
    <th>年龄</th>
    <th>专业</th>
  </tr>
  <c:forEach items="${students}" var="student">
    <tr>
      <td>${student.sid}</td>
      <td>${student.name}</td>
      <td>${student.spassword}</td>
      <td>${student.sex}</td>
      <td>${student.age}</td>
      <td>${student.major}</td>
    </tr>
  </c:forEach>
</table>
</body>
</html>
